package com.lzh.farmersshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.farmersshop.entity.Orderdetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * (Orderdetails)表数据库访问层
 *
 * @author makejava
 * @since 2024-01-04 15:37:11
 */
public interface OrderdetailsMapper extends BaseMapper<Orderdetails> {

    List<Map<String, Object>> findAllByOrdernum(@Param("orderid") Long orderid);

    List<Orderdetails> findAllByOrdernums(@Param("orderNums") List<Long> orderNums);

    Long selectAllCount(@Param("orderdetails") Orderdetails orderdetails);

    List<Map<String, Object>> selectAll(@Param("orderdetails") Orderdetails orderdetails, @Param("page") Integer page, @Param("limit") Integer limit);
}

